import { request } from "./request"

// 获取订单数据
export function getorders(query, pagenum, pagesize) {
    return request({
        url: "orders",
        method: "get",
        params: {
            query,
            pagenum,
            pagesize
        }
    })
}

// c查询订单详情
export function getorderone(id) {
    return request({
        url: `orders/${id}`,
        method: "get"
    })
}